/*
 * Copyright 2003-2005 (c) Live Media Pty Ltd. <argot@einet.com.au> 
 *
 * This software is licensed under the Argot Public License 
 * which may be found in the file LICENSE distributed 
 * with this software.
 *
 * More information about this license can be found at
 * http://www.einet.com.au/License
 * 
 * The Developer of this software is Live Media Pty Ltd,
 * PO Box 4591, Melbourne 3001, Australia.  The license is subject 
 * to the law of Victoria, Australia, and subject to exclusive 
 * jurisdiction of the Victorian courts.
 */

#ifndef METAARRAY_H_
#define METAARRAY_H_

#ifdef __cplusplus
extern "C" {
#endif


#define BAD_ARRAY_SIZE 1
#define NOT_IMPLEMENTED 2

extern type_name meta_array_name;

typedef struct meta_array
{
	meta_expression expression;
	meta_expression * size;
	meta_expression * type;
}
meta_array;

void meta_array_init( meta_array * ma, meta_expression * size, meta_expression * type );

int meta_array_read( type_input_stream * in, type_element * element );

int meta_array_write( type_output_stream * out, void * o, type_element * element );

int meta_array_do_read( type_input_stream * in, type_element * element );

int meta_array_do_write( type_output_stream * out, void * o, type_element * element );


#ifdef __cplusplus
}
#endif

#endif
